<?php /** @var $this \Action\Common\BaseLayout */ ?>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title><?php echo $this->templateData['header']['title'] ?></title>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="/static/css/base.css">
    <link rel="stylesheet" href="/static/css/common.css">
</head>
<body>

<section class="wrapper">
    <header class="header">
        <div class="container">
            <?php if($_SESSION['logined']): ?>
                <div class="toolbar">
                    <div class="toolbar-item tab-item <?php echo $this->currentClass('tab', 'page', 'page') ?>">
                        <a href="<?php echo \Action\Index::getActionUrl() ?>">页面</a>
                    </div>
<!--                    <div class="toolbar-item tab-item --><?php //echo $this->currentClass('tab', 'files', 'page') ?><!--">-->
<!--                        <a href="">文件管理</a>-->
<!--                    </div>-->
                    <div class="toolbar-item head-user">
                        <span class="toolbar-label">
                            <span class="toolbar-txt"><?= $_SESSION['logined']['user'] ?></span>
                            <i class="icon icon-arrow-solid"></i>
                        </span>
                        <ul class="menu-dropdown">
                            <li class="menu-dropdown-item">
                                <a class="menu-dropdown-label" href="<?= $this->core->actionUrl('operator.logout') ?>">退出登录</a>
                            </li>
                        </ul>
                    </div>
                </div>
            <?php endif; ?>
        </div>
    </header>
    <main class="main">
        <div class="container">
            <div class="list-files">
                <ul class="crumb-list">
                    <?php foreach ($this->breadcrumbs as $breadcrumb): ?>
                        <li class="crumb-item">
                            <?php if($breadcrumb['url']): ?>
                                <a class="crumb-item-text" href="<?php echo $breadcrumb['url'] ?>"><?php echo $breadcrumb['name'] ?></a>
                            <?php else: ?>
                                <a class="crumb-item-text"><?php echo $breadcrumb['name'] ?></a>
                            <?php endif; ?>
                        </li>
                    <?php endforeach; ?>
                </ul>